package com.central.common.feign;

import com.central.common.constant.ServiceNameConstants;
import com.central.common.model.SysRole;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @author td
 */
@FeignClient(name = ServiceNameConstants.USER_SERVICE, decode404 = true)
public interface RoleService {
    /**
     * feign rpc访问远程/roles/findRoleMap接口
     * 查询角色字典 roleId->role
     *
     * @return
     */
    @GetMapping("/roles/findRoleMap")
    Map<String, SysRole> findRoleMap();

}
